package ycy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.Configuration;

/**
 * 充当注册中心
 */
@Configuration
@SpringBootApplication
//eurekaservice 充当注册中心
@EnableEurekaServer
public class EurekaServiceSpringApplication {

    public static void main(String[] args) {
      SpringApplication.run(EurekaServiceSpringApplication.class, args);
    }

}
